﻿using System.Xml.Serialization;

namespace SelfService.XinXing.Models
{
    [XmlRoot("Response")]
    public class HisGetPatientInfoResponse : HisResponseBase
    {
        public HisPatientInfo Item { get; set; }
    }

    public class HisPatientInfo{

        /// <summary>
        /// 患者卡号
        /// </summary>
        [XmlElement("cardno")]
        public string CardNo { get; set; }

        /// <summary>
        /// 患者姓名
        /// </summary>
        [XmlElement("patientname")]
        public string PatientName { get; set; }

        /// <summary>
        /// 患者唯一ID
        /// </summary>
        [XmlElement("patientid")]
        public string PatientId { get; set; }

        /// <summary>
        /// 身份证UID
        /// </summary>
        [XmlElement("cardserno")]
        public string Uid { get; set; }

        /// <summary>
        /// 就诊卡状态: 00卡正常 02已退卡 03挂失
        /// </summary>
        [XmlElement("cardstatus")]
        public string CardStatus { get; set; }

        /// <summary>
        /// 社保卡号
        /// </summary>
        [XmlElement("ybcardseq")]
        public string SheBaoUid { get; set; }

        /// <summary>
        /// 身份证号码
        /// </summary>
        [XmlElement("idno")]
        public string IdCardNo { get; set; }

        /// <summary>
        /// 手机号码
        /// </summary>
        [XmlElement("phone")]
        public string Phone { get; set; }

        /// <summary>
        /// 住址
        /// </summary>
        [XmlElement("address")]
        public string Address { get; set; }

        /// <summary>
        /// 余额
        /// </summary>
        [XmlElement("cardbalance")]
        public decimal Balance { get; set; }

        /// <summary>
        /// 建卡时间
        /// </summary>
        [XmlElement("cardtime")]
        public string CreateTime { get; set; }

        [XmlElement("sex")]
        public string Sex { get; set; }

        [XmlElement("age")]
        public string Age { get; set; }

        [XmlElement("birthday")]
        public string BirthDay { get; set; }

        [XmlElement("ybcardno")]
        public string SheBaoCardNo { get; set; }

        [XmlElement("ishealthcard")]
        public string IsHealthCard { get; set; }

        [XmlElement("cardtype")]
        public string CardType { get; set; }

        [XmlElement("guardianname")]
        public string GuardianName { get; set; }

        [XmlElement("guardianphone")]
        public string GuardianPhone { get; set; }

        [XmlElement("healthcardId")]
        public string HealthCardId { get; set; }
    }
}
